when the caliph helped ireland